﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ReportDetailChildControl.xaml.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Defines the ReportDetailChildControl type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.Silverlight.UserControls
{
    using System.Windows.Browser;
    using MVVM.ViewModels;

    /// <summary>
    /// Defines the ReportDetailChildControl type.
    /// </summary>
    public partial class ReportDetailChildControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ReportDetailChildControl"/> class.
        /// </summary>
        public ReportDetailChildControl()
        {
            InitializeComponent();

            if (HtmlPage.IsEnabled)
            {
                var viewModel = (ReportDetailViewModel)LayoutRoot.DataContext;
                viewModel.ViewMap = map;
            }
        }
    }
}
